package com.dbs.donatebooksystem.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;
import org.yaml.snakeyaml.events.Event;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@TableName("user")
public class User {
    @TableId(value = "id", type = IdType.AUTO)
    private int id; //ID
    private String account; //账号
    private String password; //密码
    private String nickname; //用户名
    private String phone; //电话号码
    private String avatarUrl; //图像url
    private int carbonPoints;//炭币
    private String addresses;//地址
    private String status;
}
